package com.jxk.springcloud.alibaba.controller;

import com.jxk.springcloud.alibaba.domain.CommonResult;
import com.jxk.springcloud.alibaba.domain.Order;
import com.jxk.springcloud.alibaba.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName : OrderController  //类名
 * @Description :   //描述
 * @Author : jxk  //作者
 * @Date: 2020-09-29 15:39  //时间
 */
@RestController
public class OrderController{
    @Resource
    private OrderService orderService;


    @GetMapping("/order/create")
    public CommonResult create(Order order)
    {
        orderService.create(order);
        return new CommonResult(200,"订单创建成功");
    }
}

